﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.SysRole.Request;
/// <summary>
/// 分页获取系统角色列表请求实体
/// </summary>
public class RequestGetSysRolePageListModel : RequestBaseModel
{
    /// <summary>
    /// 角色名称
    /// </summary>
    public string? RoleName { get; set; }
    /// <summary>
    /// 角色权限字符串
    /// </summary>
    public string? RoleKey { get; set; }
    /// <summary>
    /// 数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）
    /// </summary>
    public string? DataScope { get; set; }
    /// <summary>
    /// 菜单树选择项是否关联显示（1:）
    /// </summary>
    public int MenuCheckStrictly { get; set; }
    /// <summary>
    /// 部门树选择项是否关联显示
    /// </summary>
    public int DeptCheckStrictly { get; set; }
    /// <summary>
    /// 角色状态（0正常 1停用）
    /// </summary>
    [StringLength(1, ErrorMessage = "角色状态长度为1")]
    public string? Status { get; set; }
    /// <summary>
    /// 创建者
    /// </summary>
    public string? CreateBy { get; set; }
    /// <summary>
    /// 更新者
    /// </summary>
    public string? UpdateBy { get; set; }
    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? BeginDate { get; set; }
    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndDate { get; set; }
    /// <summary>
    /// 排序字段
    /// </summary>
    public string OrderBy { get; set; } = string.Empty;
    /// <summary>
    /// 是否倒序
    /// </summary>
    public bool IsDesc { get; set; }
    /// <summary>
    /// 当前页
    /// </summary>
    [Required(ErrorMessage = "当前页数不能为空")]
    public int PageIndex { get; set; }
    /// <summary>
    /// 每页条数
    /// </summary>
    [Required(ErrorMessage = "每页条数不能为空")]
    public int PageSize { get; set; }
}
